package com.efesco.service.archives;
import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.DBStatement;
import com.bstek.dorado.view.*;
import com.efesco.common.CommUtil;

/**
 * V_employee_file_in_detailViewModel
 */
public class V_employee_file_in_detailViewModel extends DefaultViewModel {
  protected void doUpdateData(ParameterSet parameters)
      throws Exception {
	  Dataset dataset=this.getDataset("dataset_file_mange_in_detail");
//	  dataset.moveFirst();
//		while (!dataset.isLast()) {
//			if (dataset.getRecordState() == Record.STATE_NEW) {
//				 dataset.setString("FILE_CODE",dataset.getString("FILE_CODE_PREFIX")+CommUtil.getNewId("PASS_CODE"));
//			}
//			dataset.moveNext();
//		}
	  CommUtil.doUpdateData(dataset,"s_archives_FILE_MANAGE","archives_FILE_MANAGE_ID");
		
//	     if(dataset.getValue("STATUS")!=null&&dataset.getInt("STATUS")==1){
//	    	 DBStatement dbs =new DBStatement();
//	    	 dbs.setSql("update s_in_char_service_transaction set status=2 where in_char_service_transaction_id="+dataset.getValue("IN_CHAR_SERVICE_TRANSACTION_ID"));
//	    	 dbs.execute();
//	     }
  //  super.doUpdateData(parameters);
  }

}
